二进制安装
//指定版本安装:
$ sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.23.1/\
docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose
//对二进制文件赋可执行权限
$ sudo chmod +x /usr/local/bin/docker-compose
yum源安装
$ yum -y install docker-compose
测试安装是否成功
$ docker-compose --version
docker-compose version 1.23.1, build 1719ceb